#! /bin/bash

export NAME=xxl-job
export VERSION=2.2.1

docker build -t yuanhaitao/${NAME}:${VERSION}  .

docker tag yuanhaitao/${NAME}:${VERSION}  registry.cn-hangzhou.aliyuncs.com/yuanhaitao/${NAME}:${VERSION}
docker push registry.cn-hangzhou.aliyuncs.com/yuanhaitao/${NAME}:${VERSION}